package com.atguigu.guli.service.edu.feign.fallback;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.feign.OssFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author fenge
 */
@Service
@Slf4j
public class OssFileServiceFallBack implements OssFileService {

    @Override
    public R test() {
        log.warn("熔断保护");
        System.out.println("熔断保护");
        return R.error().message("测试失败");
    }

    @Override
    public R removeFile(String url) {
        log.warn("熔断保护");
        System.out.println("熔断保护");
        return R.error().message("删除文件失败");
    }
}